Decomposition is the process of breaking a problem into smaller pieces.
Defining the boundaries, interface, and purpose of the smaller pieces is call abstraction.
Decomposition and abstraction go hand-in-hand and are essential skills in programming.
treasure.py
¶To reach the cave, Bit must follow these instructions:
Once in the cave, navigate through the passage to the treasure (red square).
Paint the path followed green.
hike.py
¶Bit needs to plant trees all over the mountain.
Paint only the squares directly above a blocked square.